package com.example.xpvideo.entity.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 订单列表返回类
 *
 * @author : 洪俊新
 * @date : 2021/7/28 17:50
 * @description:
 */
public class OrderListRes {
    /**
     *主键
     * ${column.comment}
     * isnull 1
     */
    private Integer id;
    /**
     * 订单号
     * isnull 0
     */            private String orderCode;
    /**
     * 头像
     * isnull 0
     */            private String avatar;
    /**
     * 昵称
     * isnull 0
     */            private String nickname;

;    /**
     * 店铺名称
     * isnull 0
     */            private String merchantsName;
    /**
     * 1普通订单，2秒杀订单，3拼团订单;4老酒订单；5砍价订单；6积分商城订单
     * isnull 0
     */            private Integer orderType;
    /**
     * 支付方式，1支付宝，2微信，3余额，4线下汇款
     * isnull 0
     */            private Integer payType;
    /**
     * 订单金额
     * isnull 0
     */            private BigDecimal orderPrice;
    /**
     * 实付金额
     * isnull 0
     */            private BigDecimal paymentAmount;
    /**
     * 0待付款，1已付款待发货，2已发货待收货，3已收货待评价，4已完成，5已取消
     * isnull 0
     */            private Integer orderStage;
    /**
     * 更新时间
     * isnull 0
     */         @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getMerchantsName() {
        return merchantsName;
    }

    public void setMerchantsName(String merchantsName) {
        this.merchantsName = merchantsName;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public BigDecimal getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(BigDecimal orderPrice) {
        this.orderPrice = orderPrice;
    }

    public BigDecimal getPaymentAmount() {
        return paymentAmount;
    }

    public void setPaymentAmount(BigDecimal paymentAmount) {
        this.paymentAmount = paymentAmount;
    }

    public Integer getOrderStage() {
        return orderStage;
    }

    public void setOrderStage(Integer orderStage) {
        this.orderStage = orderStage;
    }
}
